
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>万朗 2350300097</title>
</head>
<body>

<%
    int mynumber = Integer.parseInt(request.getParameter("mynumber"));
    int number=(Integer)session.getAttribute("number");
    int count=(Integer)session.getAttribute("count");
    count++;
    session.setAttribute("count",count);
    String url="";
    if(mynumber>number){
        url="bigger.jsp";
    }
    else if(mynumber<number){
        url="smaller.jsp";
    }
    else {
        url = "success.jsp";
    }
    response.sendRedirect(url);

%>

</body>
</html>
